package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import java.util.List;

/**
 * Created by 黄江华 on 2017/10/17
 */

public class AddRoleReq extends BaseRequest {

    @NotEmpty(message = "角色名不能为空")
    @Length(max = 50, message = "角色名不能超过50个字符")
    private String roleName;

    @NotEmpty(message = "角色描述不能为空")
    @Length(max = 100, message = "角色描述不能超过100个字符")
    private String roleDesc;

    private List<Integer> resourceList;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public List<Integer> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Integer> resourceList) {
        this.resourceList = resourceList;
    }
}
